<?php
defined('IN_ADMIN') or exit('No permission resources.');?>
<script type="text/javascript" src="/statics/js/jquery.js"></script>
<style>
.table2{
	margin-top:20px;margin-left:12%;background-color:#f8f8f8;width:40%;height:100px;border:1px solid #cecece;
}

					
</style>

<table align="center" width="100%" border="0">
	<tr><td>
			<form name="form" method="post" enctype="multipart/form-data" action="?m=content&c=content&a=mydel&catid=<?php echo $catid;?>&pc_hash=<?php echo $_SESSION['pc_hash'];?>" >
				<input type="hidden" name="action" id="action" value="save">
				<table align="center" width="90%" border="1" class="table2">
					<tr>
						<td width="30%">栏目选择</td>
						<td>
							<select name="lanmu" id="yjlms">
							  <option value ="" selected="selected">全部</option>
							  <?php foreach($datayjlu as $key=>$v){?>
							  <option value ="<?php echo $v['catid'];?>"><?php echo $v['catname'];?></option>
							  <?php } ?>
							</select>
							<select name="ejlanmu" id="ejlms">
								<option value ="">全部</option>
							</select>
						</td>
					</tr>
					
					<script>
					$('#yjlms').change(function(){
						$cid = $(this).val();  
						$.post("index.php?m=content&c=content&a=ld&pc_hash=<?php echo $pc_hash;?>", { "scid": $cid },function(data){
							if(data){
								$("#ejlms").empty();
								$str='<option value="">全部</option>';
								$inf=data.a;
								for($i=0;$i<data.b;$i++){	
									$str =$str + '<option value="'+$inf[$i]["catid"]+'">'+$inf[$i]['catname']+'</option>';	
								}
								$("#ejlms").append($str);
							
							}
						}, "json");	
							
					});
				
				</script>
					<tr>
						<td>缩略图选择</td>
						<td>
							<select name="thumb">
							  <option value ="">默认全选</option>
							  <option value ="1">有</option>
							  <option value="0">无</option>
							</select>
						</td>
					</tr>
					<tr>
						<td>内容选择</td>
						<td>
							<select name="con">
							  <option value ="">默认全选</option> 
							  <option value ="1">有</option>
							  <option value="0">无</option>
							</select>
						</td>
					</tr>
					<tr>
						<td>选择保留的条数</td>
						<td>
							<input type="text" value="4000" name="nums">
						</td>
					</tr>
					<tr><td><input type="submit" value="确定删除" style="width:100px;height:25px;"></td></tr>
				</table>
			</form>
	</td></tr>
</table>

</body>
</html>